package day02.Thiss;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/17
 */
public class PersonTest {
    public static void main(String[] args) {
        // 创建测试对象
        Person p1 = new Person("张三", 25, true);
        Person p2 = new Person("李四", 22, false);
        Person p3 = new Person("王五", 23, true);
        Person p4 = new Person("赵六", 21, false);
        p1.marry(p2);
        p1.marry(p3);
        p3.marry(p2);
        p1.marry(p4);
        p1.marry(p2);
    }
}
